let mysql = require('mysql');
let db = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: 'Cc1115253594',
    database: 'demo'
});

db.connect();

let addDB = "INSERT INTO gender(id,type) VALUES(0,?)";
let addSQLParams = ["女"]
db.query(addDB, addSQLParams, function (err, result) {
    if (err) {
        console.log(err.message);
        return
    }
    console.log(result);
})

db.end()